<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
<script>
              function Clothes(name,color)
              {
                     this.name=name;
                     this.color=color;
              }
         Clothes.prototype.type="衣服";
         Clothes.prototype.Clothes_fun=function()
         {
             document.write(this.color+"是"+this.name+"穿的"+this.type)  
         }     
         var clothes1 = new Clothes("黑色的连衣裙","小丽");
         var clothes2 = new Clothes("黄色的连衣裙","小美");
         clothes1.Clothes_fun();

</script>
       
         
</body>
</html>